@charset "utf-8";

// ---- animation ----
@keyframes wave {
    0% { height: 15px; }
    50% { height: 0; }
    100% { height: 15px; }
}

* {
    box-sizing: border-box;
}

body {
    color: #222;
    font-family: "Helvetica Neue", Helvetica, STHeiTi, sans-serif;
}

.clearfix:after {
    content:"\200B";
    display:block;
    height:0;
    clear:both;
}
.clearfix {*zoom:1;}/*IE/7/6*/

.partner-wrapper {
    padding: 4%;
}

.partner-loading {
    position: fixed;
    text-align: center;
    overflow: hidden;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    padding: 5px;
    background-color: #fff;
    line-height: 20px;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(#000, 0.5);
    span {
        display: inline-block;
        width: 5px;
        // height: 15px;
        background: linear-gradient(#FEA3A9, #F22625);
        animation: wave 1.2s linear infinite;
        @for $i from 0 through 5 {
            &:nth-child(#{$i}) {
                height: round(random() * 15px);
                animation-delay: 0.2s * $i;
            }
        }
        & + span {
            margin-left: -3px;
        }
    }

    p {
        margin: 0;
        color: #999;
        font-size: 12px;
    }

}

.partner-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    li {
        margin-bottom: 4%;
        &:last-child {
            margin-bottom: auto;
        }
    }
}

.list-card {
    position: relative;
}

.list-card-bg {
    display: block;
    width: 100%;
}

.list-card-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 4%;
    display: flex;
    align-content: center;
    align-items: center;
}

.list-card-info {
    width: 100%;
    background-position: right center;
    background-repeat: no-repeat;
    background-size: 50% auto;
    @media (max-width: 479px) {
        font-size: 1em;
    }
    @media (min-width: 480px) and (max-width: 719px) {
        font-size: 1.5em;
    }
    @media (min-width: 720px) and (max-width: 959px) {
        font-size: 2em;
    }
    @media (min-width: 960px) {
        font-size: 2.5em;
    }

    p, h1, h2 {
        margin: 0;
    }
    p > img {
        display: inline-block;
        vertical-align: middle;
        width: 8%;
    }
    p > span {
        display: inline-block;
        vertical-align: middle;
        margin: 0 1%;
        color: #fff;
    }
    h2 {
        margin: 1% 0;
    }
    h1 {
        font-size: 2.2em;
    }
    .style-one {
        color: rgb(217, 184, 75);
    }
    .style-two {
        color: #fff;
    }
}

.partner-detailslist {
    list-style-type: none;
    margin: 0;
    padding: 0;
    li {
        margin-bottom: 4%;
        &:last-child {
            margin-bottom: auto;
        }
    }
}

.details-info {
    background-color: #fff;
    padding-bottom: 12px;
    background: radial-gradient(
        rgb(244,244,244) 0,
        rgb(244,244,244) 8px,
        #fff 8px,
        #fff);
    /*reducing the gradient size*/
    background-size: 24px 24px;
    /*Offset to move the holes to the edge*/
    background-position: 0 bottom;
}

.details-info-inner {
    display: flex;
    justify-content:space-between;
    align-content: center;
    align-items: center;
    width: 100%;
    padding: 4%;
    background-color: rgb(244,244,244);
}

.details-price {
    color: rgb(186,40,53);
    // font-size: 1.25em;
    @media (min-width: 640px) {
        font-size: 32 * 1em / 16;
    }
    @media (min-width: 480px) and (max-width: 639px) {
        font-size: 26 * 1em / 16;
    }
    @media (max-width: 479px) {
        font-size: 20 * 1em / 16;
    }
    span {
        font-size: 70%;
    }
}

.details-btn {
    padding: 0.5em 1em;
    border-radius: 0.2em;
    color: #fff;
    text-decoration: none;
    background-color: rgb(186,40,53);
    @media (min-width: 640px) {
        font-size: 24 * 1em / 16;
    }
    @media (min-width: 480px) and (max-width: 639px) {
        font-size: 20 * 1em / 16;
    }
    @media (max-width: 479px) {
        font-size: 1em;
    }
    &.disabled {
        background-color: #ddd;
        color: #999;
        pointer-events: none;
    }
}

.intro-name {
    margin: 0.5em 0 0;
    @media (min-width: 640px) {
        font-size: 32 * 1em / 16;
    }
    @media (min-width: 480px) and (max-width: 639px) {
        font-size: 26 * 1em / 16;
    }
    @media (max-width: 479px) {
        font-size: 20 * 1em / 16;
    }
    font-weight: bold;
    word-wrap: break-word;
    word-break: break-all;
}

.intro-period {
    float: left;
    color: #999;
    line-height: 2;
    @media (min-width: 375px) {
        font-size: 14 * 1em / 16;
    }
    @media (max-width: 374px) {
        font-size: 12 * 1em / 16;
    }
}

.intro-username {
    float: right;
    line-height: 2;
    @media (min-width: 375px) {
        font-size: 14 * 1em / 16;
    }
    @media (max-width: 374px) {
        font-size: 12 * 1em / 16;
    }
    span {
        color: #BA2835;
    }
}

.intro-sub {
    border-bottom: 1px dashed #eee;
    &:last-of-type {
        border-bottom: none;
    }
}

.intro-sub-line {
    float: left;
    margin: 0.6em 0;
    width: 100%;
    border-width: 1px 0 0 0;
    border-style: dashed;
    border-color: #dfdfdf;
}

.intro-price {
    float: left;
    line-height: 2.4;
    @media (min-width: 375px) {
        font-size: 1em;
    }
    @media (max-width: 374px) {
        font-size: 14 * 1em / 16;
    }
    @extend .details-price;
}

.intro-marketprice {
    float: right;
    line-height: 2.4;
    @media (min-width: 375px) {
        font-size: 1em;
    }
    @media (max-width: 374px) {
        font-size: 14 * 1em / 16;
    }
    margin-top: 0.2em;
    color: #999;
}

.intro-label {
    width: 100%;
    list-style-type: none;
    margin: 0;
    padding: 0;
    li {
        float: left;
        color: #C9C9C9;
        margin: 0 0.5em 0.5em 0;
        padding-left: 1.5em;
        padding-right: 0.5em;
        border-right: 1px solid #c9c9c9;
        background-position: 0 center;
        background-size: auto 100%;
        background-repeat: no-repeat;
        @media (min-width: 375px) {
            font-size: 1em;
        }
        @media (max-width: 374px) {
            font-size: 14 * 1em / 16;
        }
        &:last-child {
            border-right: 0;
        }
        @media screen and (max-width: 320px) {
            background-image: url("../img/baozhang@x.png");
        }
        @media screen and (min-width: 321px) and (max-width: 768px) {
            background-image: url("../img/baozhang@2x.png");
        }
        @media screen and (min-width: 769px) {
            background-image: url("../img/baozhang@3x.png");
        }
    }
}

.intro-sub-reverse {
    margin-bottom: 1em;
    padding: 1em 0;
}

.intro-btn {
    display: block;
    padding: 0.5em;
    @media (min-width: 640px) {
        font-size: 32 * 1em / 16;
    }
    @media (min-width: 480px) and (max-width: 639px) {
        font-size: 26 * 1em / 16;
    }
    @media (max-width: 479px) {
        font-size: 20 * 1em / 16;
    }
    color: #fff;
    background-color: #BA2835;
    border-radius: 0.2em;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
}

.intro-article {
    margin-top: 10px;
    color: #666;
    h1 {
        margin: 0;
        @media (min-width: 640px) {
            font-size: 32 * 1em / 16;
        }
        @media (min-width: 480px) and (max-width: 639px) {
            font-size: 26 * 1em / 16;
        }
        @media (max-width: 479px) {
            font-size: 20 * 1em / 16;
        }
    }
    p {
        margin: 0.4em 0;
        a {
            color: #00A8FF;
            text-decoration: none;
        }
    }
}

.intro-complete {
    margin: 0;
    padding-left: 0;
    list-style-type: none;
    li {
        padding: 0.5em 0;
        border-bottom: 1px dashed #eee;
        &:last-child {
            border-bottom: 0;
        }
        label, span {
            line-height: 2;
        }
        span {
            color: #BA2835;
        }
    }
    .intro-btn {
        float: right;
        padding: 0.5em 1.5em;
        @media (min-width: 375px) {
            font-size: 16px;
        }
        @media (max-width: 374px) {
            font-size: 14px;
        }
    }
}
